﻿// <copyright file="KinectLeaveTrigger.cs" company="Ucaya">
// </copyright>
// <author>Ucaya</author>

namespace KinectExtensions.Interactivity
{
    /// <summary>
    ///   TODO: Update summary.
    /// </summary>
    public class KinectLeaveTrigger : KinectOverTrigger
    {
        #region Methods

        /// <summary>
        ///   The on is kinect over changed.
        /// </summary>
        /// <param name = "oldValue">
        ///   The old value.
        /// </param>
        /// <param name = "newValue">
        ///   The new value.
        /// </param>
        protected override void OnIsKinectOverChanged(bool oldValue, bool newValue)
        {
            if (!newValue)
            {
                this.InvokeActions(null);
            }
        }

        #endregion
    }
}